﻿<%@ Page MasterPageFile="~/rightContent.Master" AutoEventWireup="true" CodeBehind="authManage.aspx.cs"
    Inherits="WEB.user.authManage" %>

<asp:Content ID="myhead" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="mytitle" ContentPlaceHolderID="title" runat="server">
    权限管理
</asp:Content>
<asp:Content ID="myContent" ContentPlaceHolderID="MainContent" runat="server">
    <table width="100%" class="diatance">
        <tr>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:Label ID="Label1" runat="server" Text="请输入您要查询人员的关键字："></asp:Label>
                <asp:TextBox ID="txtKey" runat="server" Width="146px" MaxLength="5"></asp:TextBox>
                <asp:Button ID="search" runat="server" Text="  查 询" OnClick="search_Click" CssClass="Submit_Query" />
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="showAllUsers" runat="server" Text="显示全部" OnClick="showAllUsers_Click"
                    CssClass="Submit_yellowbig" />
            </td>
        </tr>
    </table>
    <asp:GridView ID="gvauthview" runat="server" CellPadding="4" ForeColor="Black" GridLines="Vertical"
        AutoGenerateColumns="False" CssClass="distance" 
        OnRowEditing="gvauthview_RowEditing"
        OnRowCancelingEdit="gvauthview_RowCancelingEdit"
         OnRowUpdating="gvauthview_RowUpdating"
       
        BackColor="White" BorderColor="#DEDFDE" 
        BorderStyle="None" BorderWidth="1px"
        AllowPaging="True" OnPageIndexChanging="gvauthview_PageIndexChanging" PageSize="5"
        Width="1300px" >
        <PagerSettings FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PageButtonCount="5"
            PreviousPageText="上一页" />
        <RowStyle BackColor="#F7F7DE" />
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="EmpNUM" HeaderText="工号" ReadOnly="true" >
            <ItemStyle Width="5px" />
            </asp:BoundField>
            <asp:BoundField DataField="UserName" HeaderText="姓名" ReadOnly="true">
                <HeaderStyle Width="50px" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="工作计划">
                <ItemTemplate>
                  
                    <asp:CheckBox ID="cbplanEdit" Text="工作计划录入&lt;/br&gt;" 
                        Checked='<%#Eval("工作计划录入") %>' runat="server" />
                    <asp:CheckBox ID="cbplanNView" Text="当天业务查看&lt;/br&gt;" 
                        Checked='<%#Eval("当天业务查看") %>' runat="server" />
                    <asp:CheckBox ID="cbplanFView" runat="server" Text="将来业务查看" />
                    <br />
                    <asp:CheckBox ID="cbplanView" runat="server" Text="查看业务计划" />
                </ItemTemplate>
                <HeaderStyle Width="110px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="业务管理">
                <ItemTemplate>
                    <asp:CheckBox ID="cbWorkFlowView" Text="查看任务列表</br>" Checked='<%#Eval("查看任务列表") %>'
                        runat="server" />
                    <asp:CheckBox ID="cbSheetEdit" Text="委托单录入</br>" Checked='<%#Eval("委托单录入") %>' runat="server" />
                    <asp:CheckBox ID="cbSheetView0" Text="委托单查看</br>" Checked='<%#Eval("委托单查看") %>' runat="server" />
                    <asp:CheckBox ID="cbUpdocument" Text="报关单证上载&lt;/br&gt;" Checked='<%#Eval("报关单证上载 ") %>'
                        runat="server" />
                    <asp:CheckBox ID="cbIndex_document" Text="上载单证查看</br>" Checked='<%#Eval("上载单证查看 ") %>'
                        runat="server" />
                </ItemTemplate>
                <HeaderStyle Width="110px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="客户管理">
                <ItemTemplate>
                    <asp:CheckBox ID="cbCustomerView" Text="查看客户信息</br>" Checked='<%#Eval("查看客户信息 ") %>'
                        runat="server" />
                    <asp:CheckBox ID="cbcustomerEdit" Text="增加客户信息</br>" Checked='<%#Eval("增加客户信息 ") %>'
                        runat="server" />
                    <asp:CheckBox ID="CheckBox1" Text="合同管理</br>" Checked='<%#Eval("合同管理 ") %>'
                        runat="server" />
                </ItemTemplate>
                <HeaderStyle Width="120px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="费用结算">
                <ItemTemplate>
                    <asp:CheckBox ID="cbBillView" Text="对账单&lt;/br&gt;" Checked='<%#Eval("对账单") %>'
                        runat="server" />
                    <asp:CheckBox ID="cbMonthCustomView" Text="结算单&lt;/br&gt;" Checked='<%#Eval("结算单") %>'
                        runat="server" />
                    <asp:CheckBox ID="cbAudit" Text="审核费用</br>" Checked='<%#Eval("审核费用") %>'
                        runat="server" />
                    <asp:CheckBox ID="cbReject" Text="反审核</br>" Checked='<%#Eval("反审核") %>'
                        runat="server" />
                    <asp:CheckBox ID="cbReceivables" Text="费用录入&lt;/br&gt;" 
                        Checked='<%#Eval("费用录入") %>' runat="server" />
                    <asp:CheckBox ID="cbActualReceivables" Text="费用销账&lt;/br&gt;" Checked='<%#Eval("费用销账") %>'
                        runat="server" />
                </ItemTemplate>
                <HeaderStyle Width="170px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="统计分析">
                <ItemTemplate>
                    <asp:CheckBox ID="cbExcel_docment" Text="单证交接签收表</br>" Checked='<%#Eval("单证交接签收表") %>'
                        runat="server" />
                    <asp:CheckBox ID="cbYSshou" Text="费用统计</br>" Checked='<%#Eval("应实收统计") %>' runat="server" />
                     <asp:CheckBox ID="cbyuangongyewutongji" Text="员工业务统计</br>" Checked='<%#Eval("员工业务统计") %>' runat="server" />
                <asp:CheckBox ID="cbyewushujutongji" Text="业务数据统计&lt;/br&gt;" 
                        Checked='<%#Eval("业务数据统计") %>' runat="server" />
                </ItemTemplate>
                <HeaderStyle Width="120px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="客户互动">
                <ItemTemplate>
                    <asp:CheckBox ID="cbScoreView" Text="客户意见反馈栏</br>" Checked='<%#Eval("客户意见反馈栏") %>'
                        runat="server" />
                    <asp:CheckBox ID="cbMessage" Text="短信发送</br>" Checked='<%#Eval("短信发送") %>' runat="server" />
                </ItemTemplate>
                <HeaderStyle Width="130px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="知识分享">
                <ItemTemplate>
                    <asp:CheckBox ID="cbKnowledgeView0" Text="行业法律法规</br>" Checked='<%#Eval("行业法律法规") %>'
                        runat="server" />
                    <asp:CheckBox ID="cbKnowledgeView1" Text="业务流程</br>" Checked='<%#Eval("业务流程") %>'
                        runat="server" />
                    <asp:CheckBox ID="cbKnowledgeView2" Text="典型案例</br>" Checked='<%#Eval("典型案例") %>'
                        runat="server" />
                    <asp:CheckBox ID="cbKnowledgeView3" Text="管理公告</br>" Checked='<%#Eval("管理公告") %>'
                        runat="server" />
                    <asp:CheckBox ID="cbknowledgeView5" Text="港口情况</br>" Checked='<%#Eval("港口情况") %>'
                        runat="server" />
                    <asp:CheckBox ID="cbKnowledgeUpload" Text="资源上传</br>" Checked='<%#Eval("资源上传") %>'
                        runat="server" />
                      
                   
                       
                </ItemTemplate>
                <HeaderStyle Width="110px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="基础资料设置">
                <ItemTemplate>
                    <asp:CheckBox ID="cbindex_fee" Text="费用类别设置</br>" Checked='<%#Eval("费用类别设置") %>'
                        runat="server" />
                    <asp:CheckBox ID="cbfeeTemplateView" Text="费用模板设置</br>" Checked='<%#Eval("费用模板设置") %>'
                        runat="server" />
                    <asp:CheckBox ID="cbmodelset" Text="单证模板设置</br>" Checked='<%#Eval("单证模板设置") %>' runat="server" />
                    <asp:CheckBox ID="cbExcelSetting" Text="EXCEL模板设置&lt;/br&gt;" Checked='<%#Eval("EXCEL模板设置") %>'
                        runat="server" />
                        <asp:CheckBox ID="cbAddCode" Text="基础代码设置</br>" Checked='<%#Eval("基础代码设置") %>' runat="server" />
                    <asp:CheckBox ID="cbIndex_job" Text="岗位设置</br>" Checked='<%#Eval("岗位设置") %>' runat="server" />
                    
                    <asp:CheckBox ID="cbCodeIndex" Text="代码查询</br>" Checked='<%#Eval("代码查询") %>' runat="server" />
                    <asp:CheckBox ID="cbEmpIndex" Text="查看人员</br>" Checked='<%#Eval("查看人员") %>' runat="server" />
                    <asp:CheckBox ID="cbAddEmp" Text="增加人员</br>" Checked='<%#Eval("增加人员") %>' runat="server" />
                    <asp:CheckBox ID="cbUserPasswordChange" Checked='<%#Eval("密码修改") %>' Text="密码修改"
                        runat="server" />
                </ItemTemplate>
                <HeaderStyle Width="110px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="系统管理">
                <ItemTemplate>
                    <asp:CheckBox ID="cbAuthManage" Text="权限管理</br>" Checked='<%#Eval("权限管理") %>' runat="server" />
                    <asp:CheckBox ID="cbDatabase" Text="数据管理</br>" Checked='<%#Eval("数据管理") %>' runat="server" />
                </ItemTemplate>
                <HeaderStyle Width="90px" />
            </asp:TemplateField>
            <asp:CommandField ShowEditButton="True" ButtonType="Button" UpdateText="保存">
                <ControlStyle CssClass="Submit_gv" />
            </asp:CommandField>
        </Columns>
        <FooterStyle BackColor="#CCCC99" Wrap="True" />
        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" BorderColor="#006600"
            Wrap="True" />
        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" Font-Size="Small"
            Wrap="True" />
        <SortedAscendingCellStyle BackColor="#FBFBF2" />
        <SortedAscendingHeaderStyle BackColor="#848384" />
        <SortedDescendingCellStyle BackColor="#EAEAD3" />
        <SortedDescendingHeaderStyle BackColor="#575357" />
    </asp:GridView>


    <table width="100%">
        <tr>
            <td align="left">
                
                <asp:CheckBox ID="cbALL1" Text="业务公示区全选</br>"  runat="server" 
                        AutoPostBack="True" oncheckedchanged="cbALL_CheckedChanged"  />
                         <asp:CheckBox ID="cbALL2" Text="业务管理全选</br>"  runat="server" 
                        AutoPostBack="True" oncheckedchanged="cbALL2_CheckedChanged"  />
                         <asp:CheckBox ID="cbALL3" Text="客户管理全选</br>"  runat="server" 
                        AutoPostBack="True" oncheckedchanged="cbALL3_CheckedChanged"  />
                         <asp:CheckBox ID="cbALL4" Text="费用结算全选</br>"  runat="server" 
                        AutoPostBack="True" oncheckedchanged="cbALL4_CheckedChanged"  />
                         <asp:CheckBox ID="cbALL5" Text="统计分析全选</br>"  runat="server" 
                        AutoPostBack="True" oncheckedchanged="cbALL5_CheckedChanged"  />
                         <asp:CheckBox ID="cbALL6" Text="客户互动全选</br>"  runat="server" 
                        AutoPostBack="True" oncheckedchanged="cbALL6_CheckedChanged"  />
                         <asp:CheckBox ID="cbALL7" Text="知识分享全选</br>"  runat="server" 
                        AutoPostBack="True" oncheckedchanged="cbALL7_CheckedChanged"  />
                        <asp:CheckBox ID="cbALL8" Text="基层资料设置全选</br>"  runat="server" 
                        AutoPostBack="True" oncheckedchanged="cbALL8_CheckedChanged"  />
                        <asp:CheckBox ID="cbALL9" Text="系统管理全选</br>"  runat="server" 
                        AutoPostBack="True" oncheckedchanged="cbALL9_CheckedChanged"  />
            </td>
        </tr>
    </table>
</asp:Content>
